package com.sc.nft.controller;

import com.sc.nft.sup.Result;
import com.sc.nft.task.MallUserPropsReleasedTask;
import com.sc.nft.task.OrderTask;
import com.sc.nft.task.UserInitTask;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Jozu
 * @Date: 2024/4/25 10:50
 * @Version:1.0
 */
@RestController("/test")
@ApiOperation("定时任务本地测试类")
public class TestController {
    @Autowired
    private UserInitTask userInitTask;

    @Autowired
    private MallUserPropsReleasedTask mallUserPropsReleasedTask;

    @GetMapping("/task")
    public Result executeTest() throws Exception {
        mallUserPropsReleasedTask.mallUserPropsReleased();
        return Result.success();
    }


}
